﻿using System;
using System.Collections.Generic;
using System.Text;

using Brain.Interfaces;
using Brain;

namespace Testing
{
    class Program
    {
        
        private static int SENSOR_NUMBER = 7;
        private static int MAX_AXONS_BY_SENSOR = 125;//15;
        private static int CONEXION_MATRIX_SIZE = 10;//100;

        private static int[] _connectionMatrix = new int[CONEXION_MATRIX_SIZE];

        static void Main(string[] args)
        {
            List<ISensor> _sensorList = new List<ISensor>();

            for (int i = 0; i < SENSOR_NUMBER; i++)
            {
                _sensorList.Add(new Sensor(MAX_AXONS_BY_SENSOR, ref _connectionMatrix));
            }

            foreach (Sensor s in _sensorList)
            {
                System.Console.WriteLine(s.ToString());
            }

            PrintConnectionMatrix();
            _sensorList[0].Active = true;
            PrintConnectionMatrix();

            System.Console.ReadLine();
        }

        private static void PrintConnectionMatrix()
        {
            foreach (int i in _connectionMatrix)
            {
                System.Console.Write("|" + i + "|");
            }
            System.Console.WriteLine();
        }
    }
}
